import Send, { Proxy } from "@/common/http";



export function addCalendar(data) {
    return Send({
        url: Proxy("/api/calendar/add"),
        method: "post",
        data
    })
}

export function updateCalendar(data) {
    return Send({
        url: Proxy("/api/calendar/update"),
        method: "post",
        data
    })
}


export function getCalendar(data) {
    return Send({
        url: Proxy("/api/calendar/range"),
        method: "get",
        data
    })
}


export function deleteCalendar(id) {
    return Send({
        url: Proxy("/api/calendar/delete"),
        method: "post",
        data: {id}
    })
}
